package es.usal.proyecto.Model;

import java.util.Observable;

public class InternetModel extends Observable{

	private boolean hasInternetConnection = false;
	
	private static InternetModel instance = null;
    private InternetModel() { }
    public static synchronized InternetModel getInstance() {
        if (instance == null) {
            instance = new InternetModel();
        }
        return instance;
    }

	public boolean getHasInternetConnection() {
		return hasInternetConnection;
	}

	public void setHasInternetConnection(boolean hasInternetConnection) {
		this.hasInternetConnection = hasInternetConnection;
		this.setChanged();
		this.notifyObservers();
	}
	
	
}
